<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="aaa">
    <form>
        <p><input type="text" v-model="user.name"></p>
        <p><input type="email" v-model="user.email"></p>
        <p><input type="number" v-model="user.age"></p>
        <p>
            <select id="" name="" v-model="user.sex">
                <option value="1">男</option>
                <option value="2">女</option>
            </select>
        </p>
        <p>
            <input type="checkbox" value="抽烟" v-model="user.likes">抽烟
            <input type="checkbox" value="喝酒" v-model="user.likes">喝酒
            <input type="checkbox" value="烫头" v-model="user.likes">烫头
        </p>

        <p><input type="button" value="点我" @click="clickMe"></p>
    </form>
</div>
</body>
</html>
<script src="./node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
    let dataobj = {
        user:{
            likes:[]
        }
    };
    let aa = new Vue({
        el:"#aaa",
        data:dataobj,
        methods:{
            clickMe(){
                console.log(this.user);
            }
        }
    })
</script>